package org.lhg.activiti.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.lhg.activiti.model.StudentLeave;

import java.util.List;
import java.util.Map;

public interface LeaveMapper extends BaseMapper<StudentLeave> {

    int addLeave(StudentLeave leave);

    List<StudentLeave> listLeave(Map<String,Object> map);

    Long getTotal(Map<String, Object> map);

    StudentLeave findById(Integer id);

    int update(StudentLeave leave);

    StudentLeave leave_by_processInstanceId(String processInstanceId);
}
